package vip.xiaonuo.hontu.issued.request;

import lombok.Data;
import lombok.experimental.Accessors;
import vip.xiaonuo.facedoor.modular.deviceset.param.DwDeviceSetParam;
import vip.xiaonuo.hontu.issued.util.HT_DEVICE_POST;

/**
 * 订阅参数
 */
@Data
@Accessors(chain = true)
public class PubSubRequest {


    private String appKey;

    private String pushUrl;

    private Integer[] busiTypes;

    public PubSubRequest(DwDeviceSetParam dwDeviceSetParam) {
        this.appKey = HT_DEVICE_POST.APP_KEY;
        this.pushUrl = "http://"+dwDeviceSetParam.getSeverIp()+":"+ dwDeviceSetParam.getSeverPort()+"/bizDataReceive";
        this.busiTypes = new Integer[]{1,2,3,5,12};
    }
}
